/*
@file	CustomRectangle.h
@author	Saume
*/

#ifndef CUSTOMRECTANGLE_H
#define CUSTOMRECTANGLE_H

#include "Polygon.h"

#define NB_SIDES 4

class CustomRectangle;
class Circle;
bool operator==(const CustomRectangle&, const CustomRectangle&); // can not overload operators with pointers

class CustomRectangle: public Polygon {
protected: 
	float width, height;
public: 
	CustomRectangle();
	CustomRectangle(float, float, float, float);
	CustomRectangle(const Vector* const, const Vector* const);
	float GetWidth() const;
	float GetHeight() const;
	bool Contains(float, float) const;
	bool Contains(const Vector* const) const;
	bool CollidesWith(const CustomRectangle* const) const;
	bool CollidesWith(const Circle* const) const;
	void Display() const;
};

#endif